import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import echarts from './views/charts/echarts.vue'
//===================组织机构管理====================//
import TenantRegister from './views/sysmanage/tenantRegister.vue'
import Department from './views/sysmanage/department.vue'
import Employee from './views/sysmanage/employee.vue'
import Tenant from './views/sysmanage/tenant.vue'
//===================组织机构管理====================//
//===================系统管理====================//
import Sysconfig from './views/sysmanage/sysconfig.vue'
import Dictionary from './views/sysmanage/datadictionary.vue'
import DictionaryItem from './views/sysmanage/dictionaryitem.vue'
//===================系统管理====================//

import AuthorizeRole from './views/permission/authorizeRole.vue'
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/tenantRegister',
        component: TenantRegister,
        name: '',
        hidden: true
    },
    {
        path: '/authorizeRole',
        component: AuthorizeRole,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '主页',
        iconCls: 'fa fa-bar-chart',
        leaf:true, //没有儿子
        children: [
            { path: '/echarts', component: echarts, name: '主页' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/tenant', component: Tenant, name: '租户管理' },
            { path: '/tenantRegister', component: TenantRegister, name: '租户注册' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;
